package com.mhb.servlet;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet implementation class DemoFormServlet
 */
@WebServlet("/DemoFormServlet")
public class DemoFormServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
	
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		String username = request.getParameter("name");
		String password = request.getParameter("psd");
		String sex = request.getParameter("sex");
		String hobit = request.getParameter("interest");
		String textarea = request.getParameter("beizhu");
		String sheng = request.getParameter("sheng");
		String shi = request.getParameter("shi");	
		System.out.println("username:"+username);
		System.out.println("password:"+password);
		System.out.println("sex:"+sex);
		System.out.println("hobit:"+hobit);
		System.out.println("textarea:"+textarea);
		System.out.println("sheng:"+sheng);
		System.out.println("shi:"+shi);

		
	}

}
